package it.softphone.cmc.shared.security;

public interface Permissions {

	interface Script {
		final String SAVE = "script:save";
		final String EXEC = "script:exec";		
		final String [] ALL = { SAVE, EXEC };
	}

	interface Tenant {

		final String PREFIX = "tenant:";
		final String CREATE	= PREFIX +"create";
		final String UPDATE	= PREFIX +"update";
		final String DELETE	= PREFIX +"delete";
		final String SELECT	= PREFIX +"select";
		final String [] ALL = { CREATE, UPDATE, DELETE, SELECT };
		
	}

	interface Account {
		
		final String PREFIX = "account:";
		final String CREATE	= PREFIX +"create";
		final String UPDATE	= PREFIX +"update";
		final String DELETE	= PREFIX +"delete";
		final String SELECT	= PREFIX +"select";
		final String [] ALL = { CREATE, UPDATE, DELETE, SELECT };
		
	}

	interface User {
		
		final String PREFIX = "user:";
		final String CREATE	= PREFIX +"create";
		final String UPDATE	= PREFIX +"update";
		final String DELETE	= PREFIX +"delete";
		final String SELECT	= PREFIX +"select";
		final String [] ALL = { CREATE, UPDATE, DELETE, SELECT };
		
	}
	
}
